package com.jzy.entity.Vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import java.io.Serializable;

@Entity(name = "t_relationships")
@Data
@AllArgsConstructor
@NoArgsConstructor
@IdClass(RelationshipId.class)
public class RelationshipVoKey implements Serializable {

    /**
     * 内容主键
     */
    @Id
    @Column(columnDefinition = "int(10) unsigned not null")
    private Integer cid;

    /**
     * 项目主键
     */
    @Id
    @Column(columnDefinition = "int(10) unsigned not null")
    private Integer mid;
}
